﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="fenlei.ascx.cs" Inherits="Yhkonjian_fenlei" %>
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4">
    <Columns>
        <asp:HyperLinkField HeaderText="所在省份" DataNavigateUrlFields="name" 
            DataTextField="name" DataNavigateUrlFormatString="~/hzjg.aspx?name={0}" />

        <asp:TemplateField>
            <HeaderStyle HorizontalAlign="Center" Width="100px"/>
            <HeaderTemplate>机构数量</HeaderTemplate>
            <ItemStyle HorizontalAlign="Center" Width="100px"/>
            <ItemTemplate >
                <asp:Label ID="Label1" runat="server" Text='<%# GetProductCountBysf(Eval("name").ToString()) %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>

    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
    <RowStyle BackColor="White" ForeColor="#330099" />
    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
    <SortedAscendingCellStyle BackColor="#FEFCEB" />
    <SortedAscendingHeaderStyle BackColor="#AF0101" />
    <SortedDescendingCellStyle BackColor="#F6F0C0" />
    <SortedDescendingHeaderStyle BackColor="#7E0000" />
</asp:GridView>

